#define _CRT_SECURE_NO_WARNINGS
#include <stdio.h>

int main() {
    long int age, m;
    scanf("%ld", &age);
    m = age * 31560000;
    printf("%ld", m);
    return 0;
}